package com.yj.ccs.abs.web.asset.dto;

import com.yj.ccs.abs.web.common.entity.Attachment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/4/8
 * Author     : Unbelievable9
 **/
@Data
public class UpdatePropertyOwnershipDto {

    @NotNull(message = "货权ID不能为空")
    @ApiModelProperty(value = "货权ID", required = true, example = "1")
    private Long id;

    @NotNull(message = "资产ID不能为空")
    @ApiModelProperty(value = "资产ID", required = true, example = "1")
    private Long asset_id;

    @NotNull(message = "发货开始日期不能为空")
    @ApiModelProperty(value = "发货开始日期", required = true, example = "2018-01-12")
    private LocalDate delivery_start_date;

    @NotNull(message = "发货结束日期不能为空")
    @ApiModelProperty(value = "发货结束日期", required = true, example = "2018-01-12")
    private LocalDate delivery_end_date;

    @NotNull(message = "化验日期不能为空")
    @ApiModelProperty(value = "化验日期", required = true, example = "2018-01-12")
    private LocalDate test_date;

    @NotNull(message = "货权转移日期不能为空")
    @ApiModelProperty(value = "货权转移日期", required = true, example = "2018-01-12")
    private LocalDate transfer_date;

    @NotNull(message = "货物吨数不能为空")
    @ApiModelProperty(value = "货物吨数", required = true, example = "10000.00")
    private BigDecimal amount = BigDecimal.ZERO;

    @NotNull(message = "货物单价不能为空")
    @ApiModelProperty(value = "货物单价", required = true, example = "535")
    private BigDecimal unit_price = BigDecimal.ZERO;

    @NotNull(message = "货物用途不能为空")
    @ApiModelProperty(value = "货物用途", required = true, example = "电力生产")
    private String usage;

    @NotNull(message = "货物照片不能为空")
    @ApiModelProperty(value = "货物照片附件", required = true)
    private List<Attachment> property_files;

    @NotNull(message = "运输工具照片不能为空")
    @ApiModelProperty(value = "运输工具照片附件", required = true)
    private List<Attachment> tool_files;

    @ApiModelProperty(value = "运输照片附件")
    private List<Attachment> transport_files;

    @ApiModelProperty(value = "过衡单附件")
    private List<Attachment> sheet_files;

    @ApiModelProperty(value = "化验单附件")
    private List<Attachment> laboratory_files;

    @ApiModelProperty(value = "货权转移证明附件")
    private List<Attachment> cert_files;
}
